﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="BigImageDetail.aspx.vb" Inherits="Final_Web_2._0_Site.BigImageDetail" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <asp:Button ID="Button1" runat="server" Text="Back" />
    <br />
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="CarID" DataSourceID="BigImageDetailSqlDataSource1">
        <Columns>
            <asp:TemplateField HeaderText="Picture">
            
          <ItemTemplate>
       
           <asp:Image ID="Image1" runat = "server" ImageUrl ='<%# Eval("CarPicture") %>' CssClass ="BigDetailImageSize " /> 
            <asp:HyperLink ID="Hyperlink1" NavigateUrl ='<%# Eval("ID", "Detail.aspx?ID={0}") %>' runat ="server">
           </asp:HyperLink>
            </ItemTemplate>   
                      
                   
            </asp:TemplateField>
        
        </Columns>
    </asp:GridView>
    <br />
    <asp:SqlDataSource ID="BigImageDetailSqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:Mercedes1ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:Mercedes1ConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [Car] WHERE ([CarID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="CarID" QueryStringField="CarID" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
